<extend name="Public/base" />

<!-- 子導航 -->
<block name="sidebar">
    <include file="Article/sidemenu" />
</block>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title cf">
        <h2>
            編輯會員
          
        </h2>
    </div>
    <!-- 標簽頁導航 -->
    <div class="tab-wrap">
        <ul class="tab-nav nav">
       
        
            
             <li data-tab="tab1" class="current"><a href="javascript:void(0);">基礎資料</a></li>
             <li data-tab="tab2"><a href="javascript:void(0);">已報課程</a></li> 
        
        </ul>
        <div class="tab-content">
            <!-- 表單 -->
            <form id="form" action="{:U('Member/updates')}" method="post" class="form-horizontal">
                <!-- 基礎文檔模型 -->
                    <div id='tab1' class='tab-pane tab1 in'>
                <div class="form-item cf">
                                    <label class="item-label">姓名<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="ccount" value="{$info.ccount}">                                    </div>
                                </div>
              
                 <div class="form-item cf">
                                    <label class="item-label">卡號<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="uids" value="{$info.uids}">                                    </div>
                                </div>
                
            
                <div class="form-item cf">
                                    <label class="item-label">密碼<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input  class="text input-large" name="password" value="{$info.password}" type="password">                                    </div>
                                </div>
            
                 <div class="form-item cf">
                                    <label class="item-label">郵箱<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="email" value="{$info.email}">                                    </div>
                                </div>
            
                <div class="form-item cf">
                                    <label class="item-label">電話<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="tel" value="{$info.tel}">                                    </div>
                                </div>
                <div class="form-item cf">
                                    <label class="item-label">年齡<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="age" value="{$info.age}">                                    </div>
                                </div>    
   
                <div class="form-item cf">
                                    <label class="item-label">地址<span class="check-tips"></span></label>
                                    <div class="controls">
                                        <input type="text" class="text input-large" name="add" value="{$info.add}">                                    </div>
                                </div>    
                    </div>
					
			
                        <div id='tab2' class='tab-pane tab2' style="height:520px;">
                         
                            
                            
                          <div class="data-table table-striped">
        <table class="">
            <thead>
                <tr>
                    <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                    <th class="">編號</th>
                    <th class="">預約課程</th>
                    <th class="">操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="appointmentInfo" id="vo">
                <tr>
                    <td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
                    <td>{$vo.id} </td>
           
                    <td><span>{$vo.course}</span></td>
                    <td>
                        <a href="{:U('Admin/Article/appointmentdetail',array('id'=>$vo['id']),'')}" class="">查看詳情</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table> 
    </div>
                            
                        </div>    
                    
                    
                    <div>   
                <div class="form-item cf">
                    <input name='id' type='hidden' value='{$info.id}'>
                    <button class="btn submit-btn ajax-post hidden" id="submit" type="submit" target-form="form-horizontal">確 定</button>
                    <a class="btn btn-return" href="{:U('Member/index')}">返 回</a>
                 
                </div>
            </form>
        </div>
    </div>
	
</block>

<block name="script">
     <script>
     $(".tab-nav li").click(function () {
        var self = $(this), target = self.data("tab");
        self.addClass("current").siblings(".current").removeClass("current");
        window.location.hash = "#" + target.substr(3);
        $(".tab-pane.in").removeClass("in");
        $("." + target).addClass("in");
    }).filter("[data-tab=tab" + window.location.hash.substr(1) + "]").click();    
    </script>   
</block>